<div id="searchMenu" style="width:248px;margin-bottom:5px;">    
    <div class="category-header-right" style="width:248px;">

        <div class="category-header-left" style="width:248px;">
            <div class="category-header-bg">
                <p style="text-align:left;margin-left:10px">Danh mục sản phẩm</p>
            </div>
        </div>
    </div>      
    <div class="corner-round-05-top-right">
        <div class="corner-round-05-top-left">
            <div class="corner-round-05-top-bg"></div>

        </div>
    </div>
    <div class="corner-round-05-body">  
        <div id="categoryMenu">            
            
				<?
					$rs = $db->query("select * from ".$prefix."loaisanpham where c_hienthi = 1 and c_id_cha = 0 order by c_thutu ASC");
					while($row = $db->fetch_array($rs)){
					$c_ten = stripslashes($row[c_ten]);
					$c_id = $row[c_id];
				?>	
                   <div class="category-header">
                         <a href="<?=$root?>/danh-muc-san-pham/<?=$c_id?>/<?=$myString->vietdecode($c_ten)?>"><?=$c_ten?></a>
                    </div>
                  	    <? 
							$rs2 = $db->query("select * from ".$prefix."loaisanpham where c_hienthi = 1 and c_id_cha = ".$c_id." order by c_thutu ASC");
							while($row2 = $db->fetch_array($rs2)){
								$c_ten2 = stripslashes($row2[c_ten]);
								$c_id2 = $row2[c_id];
								
						?>
                            <div class="category-items">
                                <span><a href="<?=$root?>/danh-muc-san-pham/<?=$c_id2?>/<?=$myString->vietdecode($c_ten2)?>"><?=$c_ten2?> (<?=LaySoLuongSanPham($c_id2)?>)</a></span>
                            </div>
                       <? } ?>	
				  <? } ?>            
                    
            <br />                           
        </div>    
    </div>
    <div class="corner-round-05-bottom-right">
        <div class="corner-round-05-bottom-left">

            <div class="corner-round-05-bottom-bg"></div>
        </div>
    </div>
</div>